<template>
  <div class="second-hand">
    <Header>
      <h5>我的二手房</h5>
      <p slot="map">发布</p>
    </Header>
    <div class="addcenter">
      <div class="basic">基本信息</div>
      <div class="message">
        <van-cell-group>
          <van-field v-model="value" label="小区名称" placeholder="请输入小区名" />
        </van-cell-group>
        <van-cell is-link @click="showPopup">所属区域</van-cell>
        <van-popup v-model="show" position="bottom" :style="{ height: '30%' }" />
        <van-cell-group>
          <van-field v-model="value" label="所在地址" placeholder="请输入详细地址，精确到路名" />
        </van-cell-group>
        <div class="basic">房屋信息</div>
        <van-cell is-link @click="showPopup">房屋户型</van-cell>
        <van-popup v-model="show" position="bottom" :style="{ height: '30%' }" />
        <van-field v-model="value" label="房屋面积" placeholder="请输入建筑面积">
          <template #button>
            <span>平米</span>
          </template>
        </van-field>
        <van-field v-model="value" label="售价" placeholder="请填写售价">
          <template #button>
            <span>万元</span>
          </template>
        </van-field>
        <van-cell is-link @click="showPopup">楼层</van-cell>
        <van-popup v-model="show" position="bottom" :style="{ height: '30%' }" />
        <van-field v-model="value" label="楼层" placeholder="请填写总层数">
          <template #button>
            <span>层</span>
          </template>
        </van-field>
        <van-cell is-link @click="showPopup">朝向</van-cell>
        <van-popup v-model="show" position="bottom" :style="{ height: '30%' }" />
        <van-cell is-link @click="showPopup">装修</van-cell>
        <van-popup v-model="show" position="bottom" :style="{ height: '30%' }" />
        <van-cell is-link @click="showPopup">类型</van-cell>
        <van-popup v-model="show" position="bottom" :style="{ height: '30%' }" />
        <van-cell is-link @click="showPopup">房屋配套</van-cell>
        <van-popup v-model="show" position="bottom" :style="{ height: '30%' }" />
        <van-cell is-link @click="showPopup">特色标签</van-cell>
        <van-popup v-model="show" position="bottom" :style="{ height: '30%' }" />
        <div class="basic">更多信息</div>
        <van-field v-model="value" label="房源标题" placeholder="请输入" />
        <van-field v-model="value" label="联系人" placeholder="请输入联系人姓名" />
        <van-field v-model="value" label="手机号" placeholder="请输入手机号" />
        <van-cell is-link @click="showPopup">有效期</van-cell>
        <van-popup v-model="show" position="bottom" :style="{ height: '30%' }" />
        <van-field v-model="value" label="房源描述" placeholder="请输入" />
        <van-field v-model="value" label="图片" placeholder="请输入用户名" />
        <van-button type="info">提交</van-button>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      value: "",
      show: false,
      fieldValue: "",
      cascaderValue: "",
      options: [],
      pro: [],
      two: {
        housingName: "",
        detailAddress: "",
        houseArea: "",
        sellingprice: "",
        floor: "",
        listingTitle: "",
        contacts: "",
        Speciallabel: ""
      }
    };
  },
  methods: {
    showPopup() {
      this.show = true;
    }
    // 省
    // province() {
    //   level({ level: 1 }).then((res) => {
    //     this.pro = res.data.data;
    //   });
    // },
  },
  created() {
    // this.province();
  }
};
</script>
<style lang="scss" scoped>
.second-hand {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #efefef;
  .top {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
  }
  .basic {
    width: 100%;
    height: 40px;
    line-height: 40px;
    padding-left: 10px;
  }
}
.addcenter {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  flex: 1;
}
.van-button {
  width: 95%;
  margin-left: 2.5%;
  margin-top: 8px;
}
</style>